package com.woniuxy01;


class FatherClass{
    void test01(){}

    public static void xxx(){
        System.out.println("父类xxx");
    }
}
class SonClass extends FatherClass{
    void test01(){
        System.out.println();
    }
    void test02(){}

    public static void xxx(){
        System.out.println("子类xxx");
    }
}

public class Test03 {
    public static void main(String[] args) {
//       FatherClass.xxx();
//       SonClass.xxx();
        FatherClass fatherClass = new FatherClass();
        SonClass sonClass = new SonClass();
        fatherClass=sonClass;
        fatherClass.xxx();
    }
}
